<template>
  <div id="rankList">
    <!-- 数据更新时间 -->
    <div class="updateTimewl" v-if="updateTime != ''">
      数据更新时间：
      <span style="color:#888">
        {{
        timestamp(updateTime, "Y-M-D h:m")
        }}
      </span>
    </div>
    <!-- 榜单 -->
    <Radiogroup02
      :radio_values="radioValues"
      v-model="rankKind"
      title="榜单"
      class
      isSearch="1"
      :class="{ addPadding: rankKind == '品类飙升榜' }"
    />
    <!-- 商品种类 -->
    <template v-if="showKind == 0">
      <category_goods v-model="checkedDatasJoe" />
    </template>
    <!-- 行业 -->
    <template v-if="showKind == 1">
      <category_industry v-model="industryItemObj"/>
    </template>
    <section class>
      <!-- 时间 -->
      <time_options v-model="value05" :radio_values="['日榜', '周榜']" class="timeOptions" :timing="$global.timing"/>
      <!-- 搜索 -->
      <section class="search01">
        <div class="searchBox">
          <el-input v-model="input01" placeholder=" 请输入关键词在排行榜中搜索" @keyup.enter.native="toSearch"></el-input>
          <div class="imgBox" @click="toSearch">
            <!-- <img src="@/assets/wang/talentCompare/search.png" /> -->
          </div>
        </div>
      </section>
      <div class="btn_group">
        <button @click="generatorImage">
          <span></span>分享
        </button>
        <button @click="export_data">
          <span></span>导出
        </button>
      </div>
    </section>
    <ul
      class="fixedThead"
      ref="fixedThead"
      :class="{ isShow: isFixed }"
      :style="showLeft == true ? 'left:222px' : 'left:98px'"
    >
      <li tc>排名</li>
      <li>视频内容</li>
      <li>达人</li>
      <li tc>视频点赞量</li>
      <li tc v-if="value05.split('?')[0] == '日榜'">销量</li>
      <li tc v-if="value05.split('?')[0] == '周榜'">销量</li>
      <li tc>操作</li>
    </ul>
    <section ref="capture">
      <table class="table">
        <thead>
          <tr>
            <th>排名</th>
            <th>视频内容</th>
            <!-- <th>品牌</th> -->
            <th>达人</th>
            <th>视频点赞量</th>
            <th v-if="value05.split('?')[0] == '日榜'">销量</th>
            <th v-if="value05.split('?')[0] == '周榜'">销量</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          <tr
            v-for="(item, index) in ranksList"
            :key="'r' + index"
            v-show="ranksList.length != 0"
            :id="!index ? 'tr1' : ''"
          >
            <td>{{ 30 * (page - 1) + index + 1 }}</td>
            <td>
              <!-- 缩略图和标题跳到详情  关联商品和icon跳到热度分析 -->
              <div class="infoBox">
                <div class="leftBox">
                  <img
                    :src="item.thumPic"
                    class="thumImg"
                    @click="seeDetais(item.awemeId, '0')"
                    @error="defaultImg(video,$event)"
                  />
                  <img
                    src="@/assets/wang/video/play1.png"
                    class="playImg"
                    @click="playVideo(item.url)"
                  />
                </div>
                <div class="rightBox">
                  <pre class="titleText" @click="seeDetais(item.awemeId, '0')">
                    <div style="display:block;">
 {{ item.title }}
                    </div>
                     
                      <!-- 缩略图和标题跳到详情  关联商品和icon跳到热度分析 缩略图和标题跳到详情  关联商品和icon跳到热度分析  -->
                    </pre>

                  <div>
                    <span>关联商品:</span>
                    <!-- 来源 -->
                    <!-- <div style="margin-right: 5px">
                      <SourceIcon
                        :sourceid="item.proFrom"
                        @click="toGoodsDetails(item.proId, '0')"
                      />
                    </div>-->
                    <!-- 京东=0,淘宝=1,小店=2,天猫=3,苏宁=4,考拉=5 -->
                    <img
                      src="@/assets/meng/left03.png"
                      v-if="item.proFrom == '京东'"
                      @click="toGoodsDetails(item.proId, '0')"
                    />
                    <img
                      src="@/assets/meng/left07.png"
                      v-if="item.proFrom == '淘宝'"
                      @click="toGoodsDetails(item.proId, '0')"
                    />
                    <img
                      src="@/assets/meng/left01.png"
                      v-if="item.proFrom == '小店'"
                      @click="toGoodsDetails(item.proId, '0')"
                    />
                    <img
                      src="@/assets/meng/left08.png"
                      v-if="item.proFrom == '天猫'"
                      @click="toGoodsDetails(item.proId, '0')"
                    />
                    <img
                      src="@/assets/meng/left09.png"
                      v-if="item.proFrom == '苏宁'"
                      @click="toGoodsDetails(item.proId, '0')"
                    />
                    <img
                      src="@/assets/meng/left04.png"
                      v-if="item.proFrom == '考拉'"
                      @click="toGoodsDetails(item.proId, '0')"
                    />

                    <span @click="toGoodsDetails(item.proId, '0')">
                      {{
                      item.proTitle
                      }}
                    </span>
                  </div>
                </div>
              </div>
            </td>
            <!-- <td>
              <span v-if="item.brand != ''"> {{ item.brand }}</span>
              <span v-else> --</span>
            </td>-->
            <td>
              <div class="telentName">
                <img
                  :src="item.logo"
                  alt
                  @click="toAnalysis(item.authorId)"
                  @error="defaultImg(superman,$event)"
                />
                <div>
                  <p @click="toAnalysis(item.authorId)">{{ item.nickName }}</p>

                  <p>{{ item.releaseTime }}</p>
                </div>
              </div>
            </td>
            <td>{{ format_num(item.favoriteCount) }}</td>
            <td>{{ format_num(item.volume) }}</td>
            <td>
              <div class="optionBox">
                <button @click="seeDetais(item.awemeId, '0')">查看详情</button>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
      <div class="upgradeBox" v-if="!permissions && !loading">
        <RankUpgrade class="rankUpgrade" />
      </div>
      <!-- <div class="upgradeBox" v-if="permissions && !loading&&vipLevel==0">
        <RankUpgrade class="rankUpgrade" />
      </div> -->
      <!-- <p class="nothing" v-show="ranksList.length < 30 && !loading && ranksList.length != 0">我是有底线的～</p> -->
      <div class="pageBox" v-if="!loading&&count>30">
        <el-pagination
          background
          layout="prev, pager, next, jumper"
          :total="count"
          :page-size="30"
          :current-page="page"
          @current-change="PostRankList"
          :hide-on-single-page="true"
        ></el-pagination>
      </div>
      <div
        v-loading="loading"
        v-if="loading"
        class="loading"
        element-loading-text="拼命加载中..."
        element-loading-spinner="el-icon-loading"
      ></div>

      <div class="empty addTop" v-show="!loading && ranksList.length == 0 && permissions">
        <img src="@/assets/liu/zw.png" />
        <p>暂无数据</p>
      </div>
    </section>
    <!-- 详情弹窗 -->
    <pop v-if="dialog" v-model="dialog" :id="video_id" :index="active_name01" />
  </div>
</template>

<script>
import category_goods from '@/component/category_goods.vue';

import html2canvas from 'html2canvas';
import Radiogroup02 from '@/component/radio_group02.vue';
import pop from '@/pages/meng/video/pop';
import SourceIcon from '@/component/SourceIcon.vue';
import RankUpgrade from '@/component/rankUpgrade.vue';
import video from '@/assets/img/video.png'; //图片
import superman from '@/assets/img/superman.png';
import category_industry from '@/component/category_industry';

export default {
  components: {
    Radiogroup02,
    pop,
    SourceIcon,
    RankUpgrade,
    category_goods,
    category_industry
  },

  data() {
    return {
      video: video,
      superman: superman,
      checkedDatasJoe: {
        //商品类目数据初始数据，新筛选组件用
        parentId: 0,
        childIds: []
      },
      radioValues: [
        {
          title: '品类飙升榜',
          tipWords: [
            '视频点赞量=查询周期内该视频最后一次的点赞量',
            '全网日/周销量：商品在查询日/周/月内的抖音平台的销量'
          ]
        },
        {
          title: '行业飙升榜',
          tipWords: [
            '视频点赞量=查询周期内该视频最后一次的点赞量',
            '全网日/周销量：商品在查询日/周/月内的抖音平台的销量'
          ]
        }
      ],
      rankKind: '品类飙升榜',
      value05: '日榜',
      input01: '',
      showKind: 0,
      goodsKind: '全部',
      ranksList: [],
      showVolume: 1, //1 日销量 2 周销量
      page: 1,
      count: 0,
      busy: false,
      loading: true,
      dialog: false,
      video_id: '',
      active_name01: 1,
      updateTime: '',
      cancel: null,
      showPlay: false,
      needBuy: false,
      permissions: 1,
      showLeft: true,
      isFixed: false,
      offsetTop: 0,
      value04: '全部',
      RankType: '1',
      vipLevel: '',
      industryItemObj:{
        name:'全部',
        id:'0'
      }
    };
  },
  computed: {
    changeData() {
      const { goodsKind, industryItemObj, value05, value04 } = this;
      return {
        goodsKind,
        industryItemObj,
        value05,
        value04
      };
    }
  },
  watch: {
    checkedDatasJoe() {
      //新筛选组件用
      // this.resData = [];
      // this.toSearch();
      this.isShow();
      this.ranksList = [];
      this.page = 1;
      this.PostRankList();
    },
    // 排行榜类型
    rankKind: function (newVal, oldVal) {
      this.isShow();
      this.ranksList = [];
      this.page = 1;
      if (newVal == '品类飙升榜') {
        this.checkedDatasJoe = {
          //商品类目数据初始数据，新筛选组件用
          parentId: 0,
          childIds: []
        };
        this.showKind = 0;
      } else if (newVal == '行业飙升榜') {
        this.industryItemObj = {
          name:'全部',
          id:'0'
        };
        this.showKind = 1;
        this.PostRankList();
      }
    },
    // 搜索
    input01: function (newVal, oldVal) {
      if (newVal == '') {
        this.ranksList = [];
        this.page = 1;
        this.PostRankList();
      }
    },
    changeData(n) {
      this.isShow();
      this.ranksList = [];
      this.page = 1;
      this.PostRankList();
    },
    '$store.state.left_nav_flag'(old, newOld) {
      this.showLeft = newOld;
      if ((newOld = false)) {
        this.setTBBar();
      } else {
        this.setTBBar();
      }
    }
  },
  created() {
    this.vipLevel = localStorage.getItem('vipLevel'); //会员等级
    // 因为time_options组件内部已经提交新值，导致v-model的值更改，所以已经执行请求函数
    // this.PostRankList();
  },
  mounted() {
    window.addEventListener('scroll', this.initHeight);
    window.addEventListener('resize', () => {
      //给浏览器窗口绑定变化大小事件
      this.setTBBar();
    });
  },

  methods: {
    // 显示头像默认图片
    defaultImg(val, e) {
      if (val == video) {
        e.target.src = video;
      } else if (val == superman) {
        e.target.src = superman;
      }
    },
    isShow() {
      if (this.rankKind == '品类飙升榜') {
        this.RankType = 1;
      } else if (this.rankKind == '行业飙升榜') {
        this.RankType = 2;
        // 行业分类
      }
    },
    // 获取子节点函数（后期可集成到一个库里）
    getChilds(pNode) {
      if (!pNode) return false;
      let nodes = pNode.childNodes;
      let newList = [];
      for (let i = 0; i < nodes.length; i++) {
        let node = nodes[i];
        if (node.nodeType === 1) {
          //判断类型
          newList.push(node);
        }
      }
      return newList;
    },
    // 设置表格表头滑动置顶
    setTBBar() {
      this.$nextTick(() => {
        let tableEl = this.$refs.tableEl;
        let ulEl = this.$refs.fixedThead;
        let tr1 = document.querySelector('#tr1');
        // thTrEl.style.width = tableEl.offsetWidth+'px';
        if (tr1) {
          let tds = this.getChilds(tr1);
          let liEls = this.getChilds(ulEl);

          for (let i = 0; i < liEls.length; i++) {
            liEls[i].style.width = tds[i].offsetWidth + 'px';
          }
        }
      });
    },
    // 搜索
    toSearch() {
      this.ranksList = [];
      this.page = 1;
      this.PostRankList();
    },
    // 跳到达人详情
    toAnalysis(id) {
      let router = this.$router.resolve({
        path: `/talent_main/tdetails/${id}/0`
      });
      window.open(router.href, '_blank');
    },
    // 获取数据
    PostRankList(cpage) {
      this.ranksList = [];
      let that = this;
      if (cpage) {
        that.backTop();
        that.page = cpage;
        //console.log("page", this.page);
      }
      that.loading = true;
      that.needBuy = false;
      // 排行榜类型 1品类排行榜2行业排行榜
      // console.log(this.rankKind);
      that.$axios
        .post(
          '/api/product/PostRankList',
          {
            RankType: this.RankType,
            CategoryId:
              this.rankKind == '行业飙升榜' ? this.industryItemObj.id : this.checkedDatasJoe.parentId,
            categoryIds: this.checkedDatasJoe.childIds,
            DateType: that.value05.split('?')[0] == '日榜' ? 1 : 2,
            Time: that.value05.split('?')[1],
            Keyword: this.trimStr(that.input01),
            Index: that.page,
            Size: 30
          },
          {
            cancelToken: new that.$axios.CancelToken(function executor(c) {
              if (that.cancel != null) {
                that.cancel();
              }
              that.cancel = c;
            })
          }
        )
        .then(res => {
          that.loading = false;
          if (res.data.code1 ==1013||res.data.code == 1003||res.data.code ==1013) {
            this.permissions = 0;
            this.ranksList = [];
          } else {
            this.count = res.data.data.count;
            this.permissions = 1;
          }
          if (res.data.code == 0) {
            that.setTBBar();
            that.ranksList = res.data.data.ranks;
            that.updateTime = res.data.data.timeSpan;
            this.count = res.data.data.count;
            res.data.data.ranks.length < 30 ? (that.busy = true) : (that.busy = false);
          }
        })
        .catch(err => {
          this.loading = false;
          console.log(err);
        });
    },
    loadMore() {
      this.PostRankList();
    },
    // 播放
    playVideo(url) {
      this.showPlay = false;
      window.open(url);
    },
    // 分享
    generatorImage() {
      var that = this;
      // 时间
      let date;
      switch (that.value05.split('?')[0]) {
        case '日榜':
          date =
            that.value05.split('?')[1].split('-')[0] +
            '年' +
            that.value05.split('?')[1].split('-')[1] +
            '月' +
            that.value05.split('?')[1].split('-')[2] +
            '日';
          break;
        case '周榜':
          date =
            that.value05.split('?')[1].split('-')[0] +
            '年' +
            that.value05.split('?')[1].split('-')[1] +
            '月' +
            that.value05.split('?')[1].split('-')[2] +
            '日' +
            '至' +
            that.value05.split('?')[1].split('-')[3] +
            '年' +
            that.value05.split('?')[1].split('-')[4] +
            '月' +
            that.value05.split('?')[1].split('-')[5] +
            '日';

          break;
      }
      // console.log(date);
      const loading = this.$loading({
        lock: true,
        text: '导出中...',
        spinner: 'el-icon-loading',
        customClass: 'customClass'
      });
      var shareContent;
      shareContent = this.$refs.capture; //需要截图的包裹的（原生的）DOM 对象
      // console.log('shareContent', shareContent);
      var width = shareContent.offsetWidth; //获取dom 宽度
      var height = shareContent.offsetHeight; //获取dom 高度
      var canvas = document.createElement('canvas'); //创建一个canvas节点
      //   var scale = window.devicePixelRatio //定义任意放大倍数 支持小数 //   var scale = 2 //定义任意放大倍数 支持小数
      var scale = 1;
      canvas.width = width * scale * scale; //定义canvas 宽度 * 缩放
      canvas.height = height * scale * scale; //定义canvas高度 *缩放
      canvas.style.width = width + 'px';
      canvas.style.height = height + 'px';
      canvas.getContext('2d').scale(scale, scale); //获取context,设置scale
      var opts = {
        dpi: window.devicePixelRatio,
        scale: scale, // 添加的scale 参数
        useCORS: true,
        canvas: canvas, //自定义 canvas
        logging: true //日志开关
      };
      html2canvas(shareContent, opts).then(canvas => {
        let str;
        if (that.rankKind == '品类飙升榜') {
          str = `《品类飙升榜-${date}》.png`;
        } else if (that.rankKind == '行业飙升榜') {
          str = `《行业飙升榜-${date}》.png`;
        }
        canvas.toBlob(
          function (blob) {
            const eleLink = document.createElement('a');
            eleLink.download = str;
            eleLink.style.display = 'none';
            // 字符内容转变成blob地址
            eleLink.href = URL.createObjectURL(blob);
            // 触发点击
            document.body.appendChild(eleLink);
            eleLink.click();
            // 然后移除
            document.body.removeChild(eleLink);
          },
          'image/png',
          1
        );
        loading.close();
      });
    },
    // 导出
    // 文字加replace 数字加\t
    export_data() {
      let that = this;
      // 时间
      let date;
      switch (that.value05.split('?')[0]) {
        case '日榜':
          date =
            that.value05.split('?')[1].split('-')[0] +
            '年' +
            that.value05.split('?')[1].split('-')[1] +
            '月' +
            that.value05.split('?')[1].split('-')[2] +
            '日';
          break;
        case '周榜':
          date =
            that.value05.split('?')[1].split('-')[0] +
            '年' +
            that.value05.split('?')[1].split('-')[1] +
            '月' +
            that.value05.split('?')[1].split('-')[2] +
            '日' +
            '至' +
            that.value05.split('?')[1].split('-')[3] +
            '年' +
            that.value05.split('?')[1].split('-')[4] +
            '月' +
            that.value05.split('?')[1].split('-')[5] +
            '日';

          break;
      }
      let str = '';
      if (that.value05.split('?')[0] == '日榜') {
        str = `排名,视频内容,关联商品,商品来源,达人,发布时间,视频点赞量,销量,视频链接\n`;
      } else if (that.value05.split('?')[0] == '周榜') {
        str = `排名,视频内容,关联商品,商品来源,达人,发布时间,视频点赞量,销量,视频链接\n`;
      }
      for (let i = 0; i < that.ranksList.length; i++) {
        str += `${that.ranksList[i].rank},\"${that.ranksList[i].title.replace(
          /"/g,
          '""'
        )}\",\"${that.ranksList[i].proTitle.replace(/"/g, '""')}\",\"${that.ranksList[
          i
        ].proFrom.replace(/"/g, '""')}\",\"${that.ranksList[i].nickName.replace(
          /"/g,
          '""'
        )}\",${that.timestamp(that.ranksList[i].publishTime, 'Y-M-D h:m:s')},${that.format_num(
          that.ranksList[i].favoriteCount
        )},${that.format_num(that.ranksList[i].volume)},${that.ranksList[i].url}\n`;
      }
      var blob = new Blob([str], { type: 'text/plain;charset=utf-8' }); //解决中文乱码问题
      blob = new Blob([String.fromCharCode(0xfeff), blob], { type: blob.type });
      let object_url = window.URL.createObjectURL(blob);
      var link = document.createElement('a');
      link.href = object_url;
      let str_name = '';
      if (that.rankKind == '品类飙升榜') {
        str_name = `《品类飙升榜-${date}》.csv`;
      } else if (that.rankKind == '行业飙升榜') {
        str_name = `《行业飙升榜-${date}》.csv`;
      }
      link.download = str_name;
      document.body.appendChild(link);
      link.click();
      document.body.removeChild(link);
    },
    seeDetais(id, index) {
      this.dialog = false;
      this.active_name01 = index;
      this.video_id = id;
      let router = this.$router.resolve({
        path: '/talent_main/videoDetails',
        query: { id }
      });
      window.open(router.href, '_blank');
    },
    // 跳商品详情
    toGoodsDetails(id, tabNo) {
      let router = this.$router.resolve({
        path: `/talent_main/shop_main/${id}/${tabNo}`
      });
      window.open(router.href, '_blank');
    },
    toBuy() {
      let router = this.$router.resolve({
        path: `/talent_main/buy`
      });
      window.open(router.href, '_blank');
    },
    backTop() {
      document.body.scrollTop = document.documentElement.scrollTop = 0;
    },
    initHeight() {
      var scrollTop =
        window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
      this.isFixed = scrollTop > 310 ? true : false;
    }
  }
};
</script>
<style lang="less" scoped>
#rankList {
  min-height: 100vh;
  padding-bottom: 1px;
  /* 搜索框 */
  .imgBox {
    background: url('../../../../assets/wang/talentCompare/search-nohover.png') no-repeat 10px 7px,
      #fff;
    background-size: 15px 15px;
  }
  .imgBox:hover {
    background: url('../../../../assets/wang/talentCompare/search.png') no-repeat 10px 7px, #fff;
    background-size: 15px 15px;
  }
  // 无数据加距离上部距离
  .addTop {
    padding-top: 130px;
  }
  .addPadding {
    .title {
      margin-right: 46px !important;
    }
  }
  .search01 {
    display: inline-block;
    margin-left: 11px;
    .searchBox {
      margin-top: 0 !important;
    }
  }
  .timeOptions {
    display: inline-block;
  }
  .btn_group {
    text-align: right;
    float: right;
    button {
      width: 70px;
      height: 32px;
      border-radius: 4px;
      border: solid 1px #e5e5e5;
      font-size: 14px;
      // line-height: 30px;
      box-sizing: border-box;
      color: #555;
      text-align: center;
    }
    button:nth-of-type(2) {
      color: #67ac5b;
      border: 1px solid #67ac5b;
    }

    > button:nth-child(1) {
      margin-right: 10px;
      span {
        display: inline-block;
        width: 14px;
        height: 14px;
        background: url('../../../../assets/zhao/fenx.png') no-repeat;
        background-size: 100% 100%;
        margin-right: 4px;
        position: relative;
        top: 2px;
      }
    }
    > button:nth-child(2) {
      span {
        display: inline-block;
        width: 14px;
        height: 14px;
        background: url('../../../../assets/zhao/daoc.png') no-repeat;
        background-size: 100% 100%;
        margin-right: 4px;
        position: relative;
        top: 2px;
      }
    }
    button:nth-of-type(1):hover {
      color: #777;
      span {
        background: url('../../../../assets/zhao/fenx_h.png') no-repeat;
        background-size: 100% 100%;
      }
    }
    button:nth-of-type(2):hover {
      color: #80be76;
      border-color: #80be76;
      span {
        background: url('../../../../assets/zhao/daoc_h.png') no-repeat;
        background-size: 100% 100%;
      }
    }
  }
  table {
    text-align: center;
    margin-top: 14px;
    thead {
      tr {
        th:nth-child(1) {
          width: 10%;
        }
        th:nth-child(2) {
          text-align: left;
          width: 32%;
          text-align: left;
        }
        th:nth-child(3) {
          text-align: left;
          padding-left: 10px;
        }
        th:nth-child(3),
        th:nth-child(4),
        th:nth-child(5),
        th:nth-child(6) {
          width: 14.5%;
        }
        // th:nth-child(7) {
        //   width: 15%;
        // }
      }
    }
    tbody {
      tr {
        height: 78px;
        td:nth-child(2) {
          text-align: left;
        }
        td:nth-child(1),
        td:nth-child(5),
        td:nth-child(4) {
          font-family: DINAlternate-Bold;
          font-size: 15px;
        }
      }
    }
    .infoBox {
      width: 100%;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      .leftBox {
        width: 50px;
        height: 50px;
        border-radius: 6px;
        border: 1px solid #e5e5e5;
        box-sizing: border-box;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        .thumImg {
          width: 100%;
          height: 100%;
          border-radius: 6px;
          object-fit: cover;
        }
        .playImg {
          display: none;
          width: 20px;
          height: 20px;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
      }
      .leftBox:hover {
        .playImg {
          display: block;
        }
      }
      .rightBox {
        // width: 60%;
        margin-left: 11px;
        pre {
          margin: 0;
        }
        .titleText {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          width: 370px;
          height: 25px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          font-size: 14px;
          color: #222222;
          font-weight: 600;
          cursor: pointer;
          font-family: DINPro, -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC,
            Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif;
        }
        .titleText:hover {
          color: #ff924b;
        }
        div {
          width: 370px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          margin-top: 6px;
          line-height: 18px;
          display: flex;
          justify-content: flex-start;
          align-items: center;
          span:nth-of-type(1) {
            font-size: 14px;
            color: #888888;
            padding-right: 8px;
            display: inline-block;
            width: 62px;
            white-space: nowrap;
          }
          img {
            width: 18px;
            height: 18px;
            cursor: pointer;
            margin-right: 8px;
            // vertical-align: middle;
          }
          span:nth-of-type(2) {
            display: block;
            font-size: 14px;
            flex: 1;
            color: #888;
            cursor: pointer;
            width: 209px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
          span:nth-of-type(2):hover {
            color: #ff924b;
          }
        }
      }
    }
    // 达人
    .telentName {
      text-align: left;
      display: flex;
      p:nth-of-type(1) {
        font-size: 14px;
        color: #222;
        font-weight: 600;
        cursor: pointer;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
      }
      p:nth-of-type(1):hover {
        color: #ff924b;
      }
      p:nth-of-type(2) {
        font-size: 14px;
        color: #888888;
        margin-top: 3px;
      }
      img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        margin-right: 11px;
        flex-shrink: 0;
        cursor: pointer;
        border: 1px solid #e5e5e5;
      }
      div {
        display: flex;
        flex-direction: column;
        justify-content: center;
      }
    }
    // 操作
    .optionBox {
      border-radius: 0px 4px 4px 0px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      button {
        width: 88px;
        height: 32px;
        border: 1px solid #fd7f2c;
        border-radius: 4px;
        font-size: 14px;
        color: #fd7f2c;
        background: transparent;
      }
      button:hover {
        border-color: #ff924b;
        color: #ff924b;
      }
    }
  }
  .paginationBox {
    width: 100%;
    background-color: #fff;
    // margin-top: 10px;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    // padding-left: 1000px;
    .el-pagination {
      float: right;
    }
  }
  // 升级会员
  .upgradeBox {
    min-height: 60vh;
    position: relative;
    .rankUpgrade {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
}
.fixedThead {
  display: none;
  position: fixed;
  top: 60px;
  left: 200px;

  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  background-color: #f5f9ff;
  height: 48px;
  line-height: 48px;
  overflow: hidden;
  z-index: 99;
  font-size: 0;
  li {
    box-sizing: border-box;
    display: inline-block;
    font-size: 14px;
  }
  li:nth-child(3) {
    padding-left: 10px;
  }
  &.isShow {
    display: block;
  }
  img {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
  }
}
[tc] {
  text-align: center;
}
[tl] {
  text-align: left;
}
[tr] {
  text-align: right;
}
</style>
